#1. 添加cmake版本说明
cmake_minimum_required(VERSION 3.1.3)
#2. 声明工程名称
project(all-test)

#3. 添加子目录
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/file)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/friend)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/gateway)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/message)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/speech)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/transmite)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/user)

#4. 定义安装路径变量 默认的安装路径为 /usr/local
set(CMAKE_INSTALL_PREFIX ${CMAKE_CURRENT_BINARY_DIR})